<?php $this->renderPartial('_about', compact('slide'));?>
<?php if(count($data) >0):?>
	<section class="inside" id="inside">
			<div class="container">
				<div class="row">					
					<ul class="topic_path">
						<li><a href="<?php echo Yii::app()->baseUrl?>/">Home</a>&nbsp;&nbsp;&gt;</li>
						<?php 
						if(isset($data[0]['menu']['parent_id']) && $data[0]['menu']['parent_id'] !== null):
							$parent = MyFunctionCustom::getParentMenuById($data[0]['menu']['parent_id']);
						?>
							<li><a href="javascript:void(0);">
							<?php echo $parent['name']?></a>&nbsp;&nbsp;&gt;</li>
						<?php
						endif;
						?>
						<li><?php echo $data[0]['menu']['name']?></li>
					</ul>										
				</div>				
				<div class="row h3_title">
					<h3><?php echo $data[0]['menu']['name'];?></h3>
					<?php echo $data[0]['menu']['description'];?>
				</div>
												
				<!-- Post -->
				<?php
				foreach ($data as $key => $value):
					$url_parent = '';
					if($value['menu']['parent_id'] !== null){
						$parent = MyFunctionCustom::getParentMenuById($value['menu']['parent_id']);
						$url_parent = $parent['url'] .'/';
					}
				?>
					<div class="row post-item">
						<div class="col-md-4 post-left">						
							<a href="<?php echo Yii::app()->baseUrl.'/'. $url_parent .$value['menu']['url'] .'/'. MyFunctionCustom::create_slug($value['title']).'-' . $value['id'];?>.html">
								<img class="img-responsive" src="<?php echo Yii::app()->baseUrl?>/timthumb.php?src=<?php echo Yii::app()->baseUrl?>/images/<?php echo $value['cover_photo']?>&h=300&w=700" alt="<?php echo $value['title']?>">
							</a>
						</div>
						<div class="col-md-8 post-right">                
							<p class="post-title"><?php echo $value['title']?></p>
							<p class="post-des"><?php echo strip_tags($value['short_description'])?></p>
							<p class="post-link">
								<a href="<?php echo Yii::app()->baseUrl.'/'. $url_parent .$value['menu']['url'] .'/'. MyFunctionCustom::create_slug($value['title']).'-' . $value['id'];?>.html">Read more</a>
							</p>
						</div>
					</div>
				<?php
				endforeach;
				?>
				<!-- /.Post -->
			</div>
	</section>
<?php endif;?>